package cn.wolfcode.service;

import cn.wolfcode.domain.Department;
import cn.wolfcode.qo.PageResult;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDepartmentService {
    void deleteById(Long id);

    void insert(Department department);

    Department selectById(Long id);

    List<Department> selectAll();

    void updateById(Department department);

    /**
     * 满足条件的结果集
     * @param qo
     * @return  返回结果集
     */
    PageInfo<Department> query(QueryObject qo);
}
